//
//  EmployerMessageViewController.m
//  MagictoLane
//
//  Created by 锋 on 2017/12/30.
//  Copyright © 2017年 HUAYU. All rights reserved.
//

#import "EmployerMessageViewController.h"
#import "ResumeModel.h"
#import "ExperiModel.h"
#import "cerImageModel.h"
#import "JobsModel.h"
#import "CDZStarsControl.h"
#import "ScoringModel.h"
#import "EmployerProjectDetailViewController.h"

@interface EmployerMessageViewController ()<UITableViewDataSource, UITableViewDelegate, CDZStarsControlDelegate>
{
    NSArray *messageLeftName;
    NSArray *resumeLeftName;
    NSArray *resumeRightName;
    NSArray *cerImageArr;
    NSInteger projectPage;
    NSInteger evaluatePage;
}
@property (nonatomic, strong) UIImageView *userIcon;
@property (nonatomic, strong) NSArray *workerMessageArr;
@property (nonatomic, strong) NSMutableArray *workerProjectArr;
@property (nonatomic, strong) NSMutableArray *workerEvaluateArr;
@property (nonatomic, strong) UITableView *workerMessageTableView;
@property (nonatomic, strong) UITableView *workerProjectTableView;
@property (nonatomic, strong) UITableView *workerEvaluateTableView;
@end

@implementation EmployerMessageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.workerEvaluateArr = @[].mutableCopy;
    self.workerProjectArr = @[].mutableCopy;
    messageLeftName = @[@"公司logo",@"公司名称",@"ID",@"常用地",@"负责人",@"联系电话",@"联系地址"];
    projectPage = 0;
    evaluatePage = 0;
    [self setupUI];
    [self setupWorkerMessageTableView];
    [self requestWorkerMessage];
    [self requestWorkerEvaluate];
    [self requestWorkerProject];
    // Do any additional setup after loading the view from its nib.
}

- (void)setupUI {
    self.navigationController.navigationBar.translucent = NO;
    self.navigationItem.title = @"雇主信息";
    self.view.backgroundColor = RGB(242, 242, 242);
    _lineLabel.layer.cornerRadius = 2;
    _lineLabel.layer.masksToBounds = YES;
}

- (void)setupWorkerMessageTableView {
    _workerMessageTableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 40, SCREEN_WIDTH, SCREEN_HEIGHT - STA_NAV_HEIGHT - SCREER_HeiX - 40) style:UITableViewStyleGrouped];
    _workerMessageTableView.delegate = self;
    _workerMessageTableView.dataSource = self;
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 0.000001)];
    view.backgroundColor = [UIColor whiteColor];
    _workerMessageTableView.tableHeaderView = view;
    _workerMessageTableView.tableFooterView = view;
    _workerMessageTableView.backgroundColor = RGB(242, 242, 242);
    _workerMessageTableView.separatorColor = UIColorHexValue(0x999999);
    if (@available(iOS 11.0, *)) {
        _workerMessageTableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    }else {
        self.automaticallyAdjustsScrollViewInsets = NO;
    }
    _workerMessageTableView.estimatedRowHeight = 0;
    _workerMessageTableView.estimatedSectionHeaderHeight = 0;
    _workerMessageTableView.estimatedSectionFooterHeight = 0;
    [self.view addSubview:_workerMessageTableView];
}

- (void)setupWorkerProjectTableView {
    _workerProjectTableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 40, SCREEN_WIDTH, SCREEN_HEIGHT - STA_NAV_HEIGHT - SCREER_HeiX - 40) style:UITableViewStyleGrouped];
    _workerProjectTableView.delegate = self;
    _workerProjectTableView.dataSource = self;
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 0.000001)];
    view.backgroundColor = [UIColor whiteColor];
    _workerProjectTableView.tableHeaderView = view;
    _workerProjectTableView.tableFooterView = view;
    self.workerProjectTableView.mj_header = [MJRefreshNormalHeader headerWithRefreshingTarget:self refreshingAction:@selector(loadNewHeaderData)];
    self.workerProjectTableView.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadMoreFootData)];
    self.workerProjectTableView.mj_footer.automaticallyHidden = YES;
    self.workerProjectTableView.estimatedRowHeight = 0;
    self.workerProjectTableView.estimatedSectionHeaderHeight = 0;
    self.workerProjectTableView.estimatedSectionFooterHeight = 0;
    _workerProjectTableView.backgroundColor = RGB(242, 242, 242);
    _workerProjectTableView.separatorColor = UIColorHexValue(0x999999);
    if (@available(iOS 11.0, *)) {
        _workerProjectTableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    }else {
        self.automaticallyAdjustsScrollViewInsets = NO;
    }
    _workerProjectTableView.estimatedRowHeight = 0;
    _workerProjectTableView.estimatedSectionHeaderHeight = 0;
    _workerProjectTableView.estimatedSectionFooterHeight = 0;
    [self.view addSubview:_workerProjectTableView];
}

- (void)setupWorkerEvaluateTableView {
    _workerEvaluateTableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 40, SCREEN_WIDTH, SCREEN_HEIGHT - STA_NAV_HEIGHT - SCREER_HeiX - 40) style:UITableViewStyleGrouped];
    _workerEvaluateTableView.delegate = self;
    _workerEvaluateTableView.dataSource = self;
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 0.000001)];
    view.backgroundColor = [UIColor whiteColor];
    _workerEvaluateTableView.tableHeaderView = view;
    _workerEvaluateTableView.tableFooterView = view;
    self.workerEvaluateTableView.mj_header = [MJRefreshNormalHeader headerWithRefreshingTarget:self refreshingAction:@selector(loadNewHeaderData)];
    self.workerEvaluateTableView.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadMoreFootData)];
    self.workerEvaluateTableView.mj_footer.automaticallyHidden = YES;
    self.workerEvaluateTableView.estimatedRowHeight = 0;
    self.workerEvaluateTableView.estimatedSectionHeaderHeight = 0;
    self.workerEvaluateTableView.estimatedSectionFooterHeight = 0;
    _workerEvaluateTableView.backgroundColor = RGB(242, 242, 242);
    _workerEvaluateTableView.separatorColor = UIColorHexValue(0x999999);
    if (@available(iOS 11.0, *)) {
        _workerEvaluateTableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    }else {
        self.automaticallyAdjustsScrollViewInsets = NO;
    }
    _workerEvaluateTableView.estimatedRowHeight = 0;
    _workerEvaluateTableView.estimatedSectionHeaderHeight = 0;
    _workerEvaluateTableView.estimatedSectionFooterHeight = 0;
    [self.view addSubview:_workerEvaluateTableView];
}

- (void)loadNewHeaderData
{
    if (_evaluateBtn.isSelected) {
        evaluatePage = 0;
        [self requestWorkerEvaluate];
    }
    if (_projectBtn.isSelected) {
        projectPage = 0;
        [self requestWorkerProject];
    }
}

- (void)loadMoreFootData
{
    if (_evaluateBtn.isSelected) {
        evaluatePage++;
        [self requestWorkerEvaluate];
    }
    if (_projectBtn.isSelected) {
        projectPage++;
        [self requestWorkerProject];
    }
}

- (void)requestWorkerMessage {
    WEAKSELF;
    [MBProgressHUD showHUDAddedTo:self.view animated:YES];
    [HYBaseHandler requestGetEmployerMessageParmers:@{@"id" : @"1"} Success:^(id obj)
     {
         [MBProgressHUD hideAllHUDsForView:weakSelf.view animated:YES];
         if ([obj server_Getcodecheck])
         {
             NSLog(@"%@", obj);
             _workerMessageArr = [ResumeModel mj_objectArrayWithKeyValuesArray:@[obj[@"data"]]];
             dispatch_async(dispatch_get_main_queue(), ^{
                 [weakSelf.workerMessageTableView reloadData];
             });
         }
         else
         {
             [LTools showMBProgressWithText:obj[@"msg"] addToView:weakSelf.view];
         }
     } failed:^(NSError *error) {
         [MBProgressHUD hideAllHUDsForView:weakSelf.view animated:YES];
         
     }];
}

- (void)requestWorkerProject
{
    WEAKSELF;
    [HYBaseHandler requestEmployerProjectParmers:@{@"workerId" : @"1", @"page":[NSString stringWithFormat:@"%ld",projectPage]} Success:^(id obj)
     {
         [weakSelf.workerProjectTableView.mj_header endRefreshing];
         [weakSelf.workerProjectTableView.mj_footer endRefreshing];
         if ([obj server_Getcodecheck])
         {
             NSArray *projectArr = [JobsModel mj_objectArrayWithKeyValuesArray:obj[@"data"][@"content"]];
             dispatch_async(dispatch_get_main_queue(), ^{
                 if (evaluatePage == 0)
                 {
                     [weakSelf.workerProjectArr removeAllObjects];
                 }
                 [weakSelf.workerProjectArr addObjectsFromArray:projectArr];
                 [weakSelf.workerProjectTableView reloadData];
             });
         }
         else
         {
             [LTools showMBProgressWithText:obj[@"msg"] addToView:weakSelf.view];
         }
     } failed:^(NSError *error) {
         [weakSelf.workerProjectTableView.mj_header endRefreshing];
         [weakSelf.workerProjectTableView.mj_footer endRefreshing];
     }];
}

- (void)requestWorkerEvaluate
{
    WEAKSELF;
    [HYBaseHandler requestEmployerEvaluateParmers:@{@"target.id" : @"1", @"page":[NSString stringWithFormat:@"%ld",evaluatePage]} Success:^(id obj)
     {
         [weakSelf.workerEvaluateTableView.mj_header endRefreshing];
         [weakSelf.workerEvaluateTableView.mj_footer endRefreshing];
         if ([obj server_Getcodecheck])
         {
             NSArray *evaluateArr = [ScoringModel mj_objectArrayWithKeyValuesArray:obj[@"data"][@"content"]];
             dispatch_async(dispatch_get_main_queue(), ^{
                 if (evaluatePage == 0)
                 {
                     [weakSelf.workerEvaluateArr removeAllObjects];
                 }
                 [weakSelf.workerEvaluateArr addObjectsFromArray:evaluateArr];
                 [weakSelf.workerEvaluateTableView reloadData];
             });
         }
         else
         {
             [LTools showMBProgressWithText:obj[@"msg"] addToView:weakSelf.view];
         }
     } failed:^(NSError *error) {
         [weakSelf.workerEvaluateTableView.mj_header endRefreshing];
         [weakSelf.workerEvaluateTableView.mj_footer endRefreshing];
     }];
}

// MARK:tableview的方法
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    if ([tableView isEqual:_workerMessageTableView]) {
        return 1;
    } else if ([tableView isEqual:_workerProjectTableView]) {
        return _workerProjectArr.count;
    } else if ([tableView isEqual:_workerEvaluateTableView]) {
        return 1;
    }
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    if ([tableView isEqual:_workerMessageTableView]) {
        return messageLeftName.count;
    } else if ([tableView isEqual:_workerProjectTableView]) {
        return 1;
    } else if ([tableView isEqual:_workerEvaluateTableView]) {
        return _workerEvaluateArr.count;
    }
    return 1;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    if ([tableView isEqual:_workerMessageTableView]) {
        if (indexPath.row == 0) {
            return 90 * displaywidth;
        } else {
            return 45 * displaywidth;
        }
    } else if ([tableView isEqual:_workerProjectTableView]) {
        return 130*displaywidth;
    } else if ([tableView isEqual:_workerEvaluateTableView]) {
        return 70*displaywidth;
    }
    return 45;
}

-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
    if ([tableView isEqual:_workerProjectTableView]) {
        return 0.00001;
    }
    return 5;
}

-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
    return 0.000001;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    ResumeModel *resumeModel = _workerMessageArr[0];
    if ([tableView isEqual:_workerMessageTableView]) {
        NSString *ID = @"cellID";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
        if (!cell) {
            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:ID];
        }
        if (indexPath.row == 0) {
            NSInteger logoWidth = 80 * displaywidth;
            if (!_userIcon) {
                _userIcon = [ZCControl createImageViewWithFrame:CGRectMake(SCREEN_WIDTH - logoWidth - 15, (90 * displaywidth - logoWidth) / 2, logoWidth, logoWidth) ImageName:@"toux"];
                _userIcon.backgroundColor = [UIColor cyanColor];
                _userIcon.layer.cornerRadius = logoWidth / 2;
                _userIcon.layer.masksToBounds = YES;
                _userIcon.contentMode = UIViewContentModeScaleAspectFill;
                _userIcon.image = [UIImage imageNamed:@"toux"];
            }
            if (resumeModel.user.headImg) {
                NSURL *url = [NSURL URLWithString:resumeModel.user.headImg];
                [_userIcon sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"toux"]];
            }
            [cell.contentView addSubview:_userIcon];
        } else {
            if (indexPath.row == 1) {
                cell.detailTextLabel.text = [NSString stringWithFormat:@"%@CO%@", resumeModel.user.name, @"    "];
            } else if (indexPath.row == 2) {
                cell.detailTextLabel.text = [NSString stringWithFormat:@"%@%@", resumeModel.user.mark, @"    "];
            } else if (indexPath.row == 3) {
                cell.detailTextLabel.text = [NSString stringWithFormat:@"%@分%@", resumeModel.score, @"    "];
            } else if (indexPath.row == 4) {
                cell.detailTextLabel.text = [NSString stringWithFormat:@"%@元/小时%@", resumeModel.wage, @"    "];
            } else if (indexPath.row == 5) {
                if (![resumeModel.wageSystem isEqualToString:@""] && [resumeModel.wageSystem isKindOfClass:[NSNull class]]) {
                    cell.detailTextLabel.text = [NSString stringWithFormat:@"%@元/小时%@", resumeModel.wageSystem, @"    "];
                }
            } else if (indexPath.row == 6) {
                cell.detailTextLabel.text = [NSString stringWithFormat:@"%@%@%@%@", resumeModel.user.province, resumeModel.user.city, resumeModel.user.areaName, @"    "];
            }
            
        }
        cell.detailTextLabel.textColor = UIColorHexValue(0x999999);
        cell.textLabel.text = messageLeftName[indexPath.row];
        cell.textLabel.textColor = UIColorHexValue(0x4D4D4D);
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        
        return cell;
    } else if ([tableView isEqual:_workerProjectTableView]) {
        NSString *ID = @"cellID2";
        UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
        if (!cell)
        {
            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:ID];
        }
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        
        cell.backgroundColor = BacksColor;
        UIView *whiteview = [[UIView alloc] initWithFrame:CGRectMake(5*displaywidth, 5*displaywidth, SCREEN_WIDTH-10*displaywidth, 125*displaywidth)];
        whiteview.backgroundColor = [UIColor whiteColor];
        whiteview.layer.cornerRadius = 5;
        whiteview.layer.masksToBounds = YES;
        [cell.contentView addSubview:whiteview];
        if (_workerProjectArr.count > 0)
        {
            JobsModel *model = _workerProjectArr[indexPath.row];
            UILabel *nameLab = [ZCControl createLabelWithFrame:CGRectMake(20*displaywidth, 15*displaywidth, SCREEN_WIDTH-80*displaywidth, 25*displaywidth) Font:16.0 Text:model.name Color:RGB(129, 148, 196)];
            [whiteview addSubview:nameLab];
            UILabel *tostLab = [ZCControl createLabelWithFrame:CGRectMake(20*displaywidth, 40*displaywidth, SCREEN_WIDTH-80*displaywidth, 50*displaywidth) Font:13.0 Text:[NSString stringWithFormat:@"生产说明：\n%@",model.remark] Color:RGB(77, 77, 77)];
            tostLab.lineBreakMode = NSLineBreakByTruncatingTail;
            tostLab.adjustsFontSizeToFitWidth = NO;
            [whiteview addSubview:tostLab];
            UILabel *timeLab = [ZCControl createLabelWithFrame:CGRectMake(20*displaywidth, 90*displaywidth, SCREEN_WIDTH-80*displaywidth, 20*displaywidth) Font:12.0 Text:[NSString stringWithFormat:@"项目工期：%@至%@",model.startDate,model.endDate] Color:RGB(128, 128, 128)];
            [whiteview addSubview:timeLab];
            UILabel *detailLab = [ZCControl createLabelWithFrame:CGRectMake(SCREEN_WIDTH-125*displaywidth, 90*displaywidth, 100*displaywidth, 20*displaywidth) Font:13.0 Text:@"查看详情" Color:RGB(236, 165, 84)];
            detailLab.textAlignment = NSTextAlignmentRight;
            [whiteview addSubview:detailLab];
            
            NSInteger statusNum = [model.status integerValue];
            UIImageView *typeImgView = [ZCControl createImageViewWithFrame:CGRectMake(SCREEN_WIDTH-45*displaywidth, 5*displaywidth, 40*displaywidth, 35*displaywidth) ImageName:@"jinxingzhong"];
            typeImgView.contentMode = UIViewContentModeScaleAspectFit;
            typeImgView.hidden = YES;
            [cell.contentView addSubview:typeImgView];
            if (statusNum == 2)
            {
                typeImgView.hidden = NO;
            }
            if (statusNum == 3)
            {
                typeImgView.hidden = NO;
                typeImgView.frame = CGRectMake(SCREEN_WIDTH-60*displaywidth, 35*displaywidth, 45*displaywidth, 45*displaywidth);
                typeImgView.image = [UIImage imageNamed:@"yiwancheng"];
            }
        }
        
        return cell;
    } else if ([tableView isEqual:_workerEvaluateTableView]) {
        NSString *ID = @"cellID3";
        UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
        if (!cell)
        {
            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:ID];
        }
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        
        if (_workerEvaluateArr.count > 0)
        {
            ScoringModel *model = _workerEvaluateArr[indexPath.row];
            UIView *lineBview = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 1*displaywidth)];
            lineBview.backgroundColor = LinesColor;
            [cell.contentView addSubview:lineBview];
            UIImageView *imgView = [ZCControl createImageViewWithFrame:CGRectMake(10*displaywidth, 15*displaywidth, 40*displaywidth, 40*displaywidth) ImageName:@"toux"];
            imgView.layer.cornerRadius = 20*displaywidth;
            imgView.layer.masksToBounds = YES;
            if (model.user.headImg.length > 0)
            {
                [imgView sd_setImageWithURL:[NSURL URLWithString:model.user.headImg] placeholderImage:[UIImage imageNamed:@"toux"]];
            }
            [cell.contentView addSubview:imgView];
            NSInteger typeNum = [model.user.type integerValue];
            NSString *typeName = @"雇主";
            UIColor *backColor = RGB(238, 103, 94);
            if (typeNum == 2)
            {
                typeName = @"厂家";
                backColor = ThemeColor;
            }
            if (typeNum == 3)
            {
                typeName = @"工人";
                backColor = ThemeColor;
            }
            UILabel *typrLab = [ZCControl createLabelWithFrame:CGRectMake(60*displaywidth, 15*displaywidth, 30*displaywidth, 15*displaywidth) Font:10.0 Text:typeName Color:[UIColor whiteColor]];
            typrLab.backgroundColor = backColor;
            typrLab.textAlignment = NSTextAlignmentCenter;
            typrLab.layer.cornerRadius = 2;
            typrLab.layer.masksToBounds = YES;
            [cell.contentView addSubview:typrLab];
            
            UILabel *nameLab = [ZCControl createLabelWithFrame:CGRectMake(105*displaywidth, 10*displaywidth, SCREEN_WIDTH-215*displaywidth, 25*displaywidth) Font:12.0 Text:model.user.name Color:RGB(153, 153, 153)];
            [cell.contentView addSubview:nameLab];
            
            UILabel *contenLab = [ZCControl createLabelWithFrame:CGRectMake(105*displaywidth, 35*displaywidth, SCREEN_WIDTH-120*displaywidth, 35*displaywidth) Font:14.0 Text:model.user.name Color:RGB(77, 77, 77)];
            [cell.contentView addSubview:contenLab];
            
            CDZStarsControl *starsControl = [CDZStarsControl.alloc initWithFrame:CGRectMake(SCREEN_WIDTH-110*displaywidth, 10*displayheight, 100*displaywidth , 25*displayheight) stars:5 starSize:CGSizeMake(20*displayheight, 20*displayheight) noramlStarImage:[UIImage imageNamed:@"huixx"] highlightedStarImage:[UIImage imageNamed:@"hongxx"]];
            starsControl.delegate = self;
            starsControl.allowFraction = YES;
            starsControl.score = [model.grade floatValue];
            [cell.contentView addSubview:starsControl];
            
        }
        
        return cell;
    }
    return nil;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    if ([tableView isEqual:_workerProjectTableView]) {
        EmployerProjectDetailViewController *detailVC = [[EmployerProjectDetailViewController alloc] init];
        [self.navigationController pushViewController:detailVC animated:YES];
    }
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
}

- (IBAction)onClickMessageBtn:(UIButton *)sender {
    sender.selected = !sender.selected;
    _workerMessageTableView.hidden = NO;
    _workerProjectTableView.hidden = YES;
    _workerEvaluateTableView.hidden = YES;
    [_workerMessageTableView reloadData];
    [Utilities underLineSlideAnimation:_lineLabel withAlignView:_messageBtn andAnimationView:nil];
}
- (IBAction)onClickProjectBtn:(UIButton *)sender {
    sender.selected = !sender.selected;
    _workerMessageTableView.hidden = YES;
    _workerProjectTableView.hidden = NO;
    _workerEvaluateTableView.hidden = YES;
    if (!_workerProjectTableView) {
        [self setupWorkerProjectTableView];
    }
    [_workerProjectTableView reloadData];
    [Utilities underLineSlideAnimation:_lineLabel withAlignView:_projectBtn andAnimationView:nil];
}
- (IBAction)onClickEvaluateBtn:(UIButton *)sender {
    sender.selected = !sender.selected;
    _workerMessageTableView.hidden = YES;
    _workerProjectTableView.hidden = YES;
    _workerEvaluateTableView.hidden = NO;
    if (!_workerEvaluateTableView) {
        [self setupWorkerEvaluateTableView];
    }
    [_workerEvaluateTableView reloadData];
    [Utilities underLineSlideAnimation:_lineLabel withAlignView:_evaluateBtn andAnimationView:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
